package com.joysuch.wwyt.common.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础数据Entity类
 */
@Setter
@Getter
public class DataEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "UPDATE_TIME",update ="now()", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    @TableField(value = "DELETE_FLAG", fill = FieldFill.INSERT)
    private String deleteFlag;
}
